Related Vulnerabilities: CVE-2021-42574  

An issue was discovered in the Bidirectional Algorithm in the Unicode Specification through 14.0. It permits the visual reordering of characters via control sequences, which can be used to craft source code that renders different logic than the logical ordering of tokens ingested by compilers and interpreters. Adversaries can leverage this to encode source code for compilers accepting Unicode such that targeted vulnerabilities are introduced invisibly to human reviewers.

Severity Medium

Remote Yes

Type Content spoofing

Description

An issue was discovered in the Bidirectional Algorithm in the Unicode Specification through 14.0. It permits the visual reordering of characters via control sequences, which can be used to craft source code that renders different logic than the logical ordering of tokens ingested by compilers and interpreters. Adversaries can leverage this to encode source code for compilers accepting Unicode such that targeted vulnerabilities are introduced invisibly to human reviewers.

AVG-2506 rust 1:1.56.0-3 Medium Vulnerable

https://trojansource.codes/
https://trojansource.codes/trojan-source.pdf
https://github.com/nickboucher/trojan-source
https://groups.google.com/g/rustlang-security-announcements/c/bKPH8XYMvJU
https://github.com/rust-lang/rust/commit/dd61274930ec0cd17711fab52d2bc9ad3e9053de